<template>
  <div class="side-bar">
    <h4>{{ sideTitle }}</h4>
    <side-bar-menu :menu="sideInfo" @select="onSelect" :style="{ height: 'calc(100% - 50px)' }"></side-bar-menu>
  </div>
</template>
<script>
import SideBarMenu from './SideBarMenu'
export default {
  name: 'SideBar',
  props: {
    sideTitle: {
      type: String,
      required: true
    },
    sideInfo: {
      type: Array,
      required: true
    }
  },
  components: {
    SideBarMenu
  },
  methods: {
    onSelect () {}
  }
}
</script>
<style lang="less" scoped>
.side-bar {
  background-color: #ffffff;
  height: 100%;
  h4 {
    height: 50px;
    line-height: 50px;
    border-bottom: 1px solid #e8ecf0;
    text-align: center;
    font-size: 16px;
    box-sizing: border-box;
    margin: 0;
  }
}
</style>
